//
//  WmcLifeCycleProtocol.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/3/14.
//

import Foundation

// MARK: - [WmcLifeCycleProtocol]

protocol WmcLifeCycleProtocol {
    /// 视图即将出现
    func viewWillAppear(_ vc: WmcBaseVC)
    /// 视图已经出现
    func viewDidAppear(_ vc: WmcBaseVC)
    /// 视图即将消失
    func viewWillDisappear(_ vc: WmcBaseVC)
    /// 视图已经消失
    func viewDidDisappear(_ vc: WmcBaseVC)
}

extension WmcLifeCycleProtocol {
    /// 视图即将出现
    func viewWillAppear(_ vc: WmcBaseVC) {}
    /// 视图已经出现
    func viewDidAppear(_ vc: WmcBaseVC) {}
    /// 视图即将消失
    func viewWillDisappear(_ vc: WmcBaseVC) {}
    /// 视图已经消失
    func viewDidDisappear(_ vc: WmcBaseVC) {}
}
